package com.uuah.server.exception.endpoint;

import com.uuah.config.i18n.Message;
import com.uuah.server.config.i18n.ServerMessages;

public class MalformedEndpointException extends EndpointException {
	private static final long serialVersionUID = -3179045414716505094L;

	public MalformedEndpointException(String endpoint) {
		super(ServerMessages.endpointIsMalformed(endpoint));
	}

	public MalformedEndpointException(Message message, String endpoint) {
		super(ServerMessages.endpointIsMalformed(endpoint).setNextMessage(
				message));
	}

	public MalformedEndpointException(String endpoint, Throwable cause) {
		super(ServerMessages.endpointIsMalformed(endpoint), cause);
	}

	public MalformedEndpointException(Throwable cause) {
		super(cause);
	}
}
